package com.zsy.dao;

import com.zsy.pojo.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishDao {

    void save(@Param("collect") List<SetmealDish> collect);

    @Select("select *from setmeal_dish where setmeal_id=#{id}")
    List<SetmealDish> findById(Long id);

    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void delete(Long id);
}
